<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-control" content="no-cache">

	<%-- CSS Style Declarations --%>
	<link rel ="stylesheet" type="text/css" href="css/style.css" ></link>
	
		<%-- Java imports --%>
	<%@ page import="java.io.*" %>
	<%@ page import="java.util.*" %>
	<%@ page import="org.eclipse.wtp.sample.flashcards.FlashCardSet" %>
	<%@ page import="org.eclipse.wtp.sample.flashcards.FlashCardHand" %>
	<%@ page import="org.eclipse.wtp.sample.flashcards.FlashCard" %>
	
	<%-- Get reference to Java Objects --%>
	<% 	FlashCardHand localHand = (FlashCardHand)request.getSession().getAttribute("flashcardhand");%>
	
<title>Test</title>
</head>

<body>

<div id="center-wrapper">
<div id="center-column">

<!-- Header -->
<div id="header">
<FORM action="/FlashCards/ToMain" method="post">
			<input
				type="submit"
				name="button1"
				class="headerbutton"
				value="Main Menu"
				title="">
</FORM>
</div> <!-- header -->

<!-- Dictionary Title -->
<div style="
	position:absolute;
	top:8px;
	left:100px;
	color:#FFFFFF;
	font-weight:bold;
	">
	<% out.println( localHand.getTitle()); %>
</div> <!-- Dictionary Title -->

<!-- Score in Header -->
<div style="
	position:absolute;
	top:8px;
	left:400px;
	color:#FFFFFF;
	font-weight:bold;
	">
	<font color="#620A00">Correct:</font> <% out.println(request.getSession().getAttribute("correct")); %>
</div>
<div style="
	position:absolute;
	top:8px;
	left:490px;
	color:#FFFFFF;
	font-weight:bold;
	">
	<font color="#620A00">Incorrect:</font> <% out.println(request.getSession().getAttribute("incorrect")); %>
</div><!-- score -->

<!-- Test Word -->
<div id="test-word">
	<% out.println(localHand.getTestKey1()); %>
</div> <!-- test-word -->

<%-- Answer buttons --%>
<div style="
	position:absolute;
	top:160px;
	left:55px;
	align:center;
	">
<FORM action="/FlashCards/Test" method="post">
			<input
				type="submit"
				name="button1"
				class="cardbutton"
				value="<% out.println(localHand.getCardKey2(0)); %>" >
			<input
				type="submit"
				name="button1"
				class="cardbutton"
				value="<% out.println(localHand.getCardKey2(1)); %>" >
			<input
				type="submit"
				name="button1"
				class="cardbutton"
				value="<% out.println(localHand.getCardKey2(2)); %>" >
</FORM>
</div><!-- answer buttons -->

<!-- Result -->
<div style="
	position:absolute;
	top:350px;
	left:0px;
	width:600px;
	color:#A63F00;
	font-size:14px;
	font-weight:bold;
	text-align: center;
	">
	<% out.println( request.getAttribute("result")); %>
</div> <!-- Result -->

</div> <!-- center-column -->
</div> <!-- center-wrapper -->
</body>
</html>